package com.foreverwin.mes.meapi.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-02-07
 */
@TableName("SFC_BOM")
public class SfcBom extends Model<SfcBom> {

    private static final long serialVersionUID = 1L;

   @TableField("HANDLE")
   private String handle;
   @TableField("CHANGE_STAMP")
   private Long changeStamp;
   @TableField("SFC_BO")
   private String sfcBo;
   @TableField("BOM_BO")
   private String bomBo;
   @TableField("PREV_SITE")
   private String prevSite;
   @TableField("ORIGINAL_TRANSFER_KEY")
   private String originalTransferKey;
   @TableField("MODIFIED_DATE_TIME")
   private Date modifiedDateTime;
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
   @TableField("PARTITION_DATE")
   private Date partitionDate;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public Long getChangeStamp() {
      return changeStamp;
   }

   public void setChangeStamp(Long changeStamp) {
      this.changeStamp = changeStamp;
   }

   public String getSfcBo() {
      return sfcBo;
   }

   public void setSfcBo(String sfcBo) {
      this.sfcBo = sfcBo;
   }

   public String getBomBo() {
      return bomBo;
   }

   public void setBomBo(String bomBo) {
      this.bomBo = bomBo;
   }

   public String getPrevSite() {
      return prevSite;
   }

   public void setPrevSite(String prevSite) {
      this.prevSite = prevSite;
   }

   public String getOriginalTransferKey() {
      return originalTransferKey;
   }

   public void setOriginalTransferKey(String originalTransferKey) {
      this.originalTransferKey = originalTransferKey;
   }

   public Date getModifiedDateTime() {
      return modifiedDateTime;
   }

   public void setModifiedDateTime(Date modifiedDateTime) {
      this.modifiedDateTime = modifiedDateTime;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public Date getPartitionDate() {
      return partitionDate;
   }

   public void setPartitionDate(Date partitionDate) {
      this.partitionDate = partitionDate;
   }

   public static final String HANDLE = "HANDLE";

   public static final String CHANGE_STAMP = "CHANGE_STAMP";

   public static final String SFC_BO = "SFC_BO";

   public static final String BOM_BO = "BOM_BO";

   public static final String PREV_SITE = "PREV_SITE";

   public static final String ORIGINAL_TRANSFER_KEY = "ORIGINAL_TRANSFER_KEY";

   public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String PARTITION_DATE = "PARTITION_DATE";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "SfcBom{" +
         "handle = " + handle +
         ", changeStamp = " + changeStamp +
         ", sfcBo = " + sfcBo +
         ", bomBo = " + bomBo +
         ", prevSite = " + prevSite +
         ", originalTransferKey = " + originalTransferKey +
         ", modifiedDateTime = " + modifiedDateTime +
         ", createdDateTime = " + createdDateTime +
         ", partitionDate = " + partitionDate +
         "}";
   }
}